package com.kgc.service;

import com.kgc.bean.DiscountTrick;

import com.kgc.bean.User;
import com.kgc.util.ReturnResult;

import java.util.List;


public interface CouponService {
//新增优惠券
    boolean addDiscountTrick(DiscountTrick discountTrick);

//兑换优惠券
    ReturnResult<String> userAddDiscountTrick(Integer userId, Integer discountTrickId);

//每个人只能拿一张优惠券
    boolean checkUserOnlyOne(Integer userId, Integer discountTrickId);
//有效的优惠券
    List<DiscountTrick> getEnableTrick();

    User selectInfo(Integer userId);
}
